﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Columns/Column.Master" AutoEventWireup="true"
    CodeBehind="ColumnView.aspx.cs" Inherits="ExpertMIS.Columns.ColumnView" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style type="text/css">
    .articles-list
    {
        height:360px;
        overflow:hidden;
    }
    .result-paging
    {
        text-align:center;
    }
    .result-paging a
    {
        color:White;
    }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>
        <%= GetColumnName() %>
    </h1>
    <div class="articles-list">
    <asp:Repeater runat="server" ID="repArticles">
        <HeaderTemplate>
            <ul>
        </HeaderTemplate>
        <ItemTemplate>
            <li>
                <asp:HyperLink runat="server" ID="hlArticle" Target="_self" NavigateUrl='<%# "Article.aspx?oid=" + Eval("F_OID").ToString() %>'
                    Text='<%# Eval("F_Title") %>'></asp:HyperLink></li>
        </ItemTemplate>
        <FooterTemplate>
            </UL>
        </FooterTemplate>
    </asp:Repeater>
    </div>
    <div class="result-paging">
    <table>
        <tr>
            <td>
                <a href="?oid=<%= Request["oid"] %>&start=1">【首 页】</a>
            </td>
            <td>
                <a href="?oid=<%= Request["oid"] %>&start=<%= GetPriorPageIndex() %>">【上一页】</a>
            </td>
            <td>
                <a href="?oid=<%= Request["oid"] %>&start=<%= GetNextPageIndex() %>">【下一页】</a>
            </td>
            <td>
                <a href="?oid=<%= Request["oid"] %>&start=<%= GetLastPageIndex() %>">【尾 页】</a>
            </td>
            <td>
                【页次
                <%= GetPageIndex() %> 】
            </td>
            <td>
                【共
                <%= GetRecordCount() %>
                条】
            </td>
        </tr>
    </table>
</div>
</asp:Content>
